From 8a36a4acd1643da82cea5cc784eafbff8ac06f62 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 1 Sep 2011 17:46:43 +0100 Subject: [PATCH] xen/x86: only support >128 CPUs on x86_64 32 bit cannot cope with 256 cpus and hits: /* At least half the ioremap space should be available to us. */ BUILD_BUG_ON(IOREMAP_VIRT_START + (IOREMAP_MBYTES << 19) >= FIXADDR_START); Signed-off-by: Ian Campbell --- xen/include/asm-x86/config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/include/asm-x86/config.h b/xen/include/asm-x86/config.h index 96b0c4c720..40a7b8c2c9 100644 --- a/xen/include/asm-x86/config.h +++ b/xen/include/asm-x86/config.h @@ -49,6 +49,8 @@ #ifdef MAX_PHYS_CPUS #define NR_CPUS MAX_PHYS_CPUS +#elif defined __i386__ +#define NR_CPUS 128 #else #define NR_CPUS 256 #endif -- 2.30.2